﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects.DataClasses;

namespace WA.Core.DomainModel
{
    [EdmEntityType(Name = "EntryInvoice", NamespaceName = "WA.Core.DomainModel")]
    public class EntryInvoice:Invoice
    {
        private decimal? amountWithoutVat;
        private decimal? lumpSum;
        private decimal? vatThatCanBeDeducted;
        private decimal? vatThatCanNotBeDeducted;

        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable = false)]
        public decimal? AmountWithoutVat
        {
            get { return amountWithoutVat; }
            set
            {
                this.PropertyChanging("AmountWithoutVat");
                amountWithoutVat = value;
                this.PropertyChanged("AmountWithoutVat");
            }

        }

        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable = false)]
        public decimal? LumpSum
        {
            get { return lumpSum; }
            set
            {
                this.PropertyChanging("LumpSum");
                lumpSum = value;
                this.PropertyChanged("LumpSum");
            }

        }

        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable = false)]
        public decimal? VatThatCanBeDeducted
        {
            get { return vatThatCanBeDeducted; }
            set
            {
                this.PropertyChanging("VatThatCanBeDeducted");
                vatThatCanBeDeducted = value;
                this.PropertyChanged("VatThatCanBeDeducted");
            }

        }

        [global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(IsNullable = false)]
        public decimal? VatThatCanNotBeDeducted
        {
            get { return vatThatCanNotBeDeducted; }
            set
            {
                this.PropertyChanging("VatThatCanNotBeDeducted");
                vatThatCanNotBeDeducted = value;
                this.PropertyChanged("VatThatCanNotBeDeducted");
            }

        }

        

    }
}
